home *** CD-ROM | disk | FTP | other *** search
/ Chip: 2005 Utilities / CHIP Utilities 2005 / CHIP Utilities 2005.iso / dosapps / savepart / doc / en / readme.txt < prev   
Encoding:
Text File  |  2004-11-05  |  96.8 KB  |  1,984 lines

  1.  
  2.                   +----------------------------------------+
  3.                   |                                        |
  4.                   |            Partition saving            |
  5.                   |                                        |
  6.                   |    http://www.partition-saving.com     |
  7.                   |  Copyright (c) 1999-2004 D. Guibouret  |
  8.                   +----------------------------------------+
  9.  
  10.                                     Manual
  11.  
  12. Table of contents 
  13. -----------------
  14.  
  15.   1- Preamble 
  16.   2- Presentation 
  17.   3- Needed configuration 
  18.   4- Interface running 
  19.      a) Textual windows interface 
  20.      b) Command line interface 
  21.   5- Use of program 
  22.   6- Saving element 
  23.      a) Support choice: 
  24.      b) Source element choice: 
  25.      c) Part to save: 
  26.      d) File choice: 
  27.      e) File size choice: 
  28.      f) Deflating choice: 
  29.      g) Saving window: 
  30.      h) Options file creation: 
  31.      i) Examples: 
  32.   7- Restoring element 
  33.      a) File choice: 
  34.      b) Destination element choice: 
  35.      c) Restoring window: 
  36.      d) Examples: 
  37.   8- Copying element 
  38.      a) Support choice: 
  39.      b) Source element choice: 
  40.      c) Part to save: 
  41.      d) Destination element choice: 
  42.      e) Copying window: 
  43.      f) Examples: 
  44.   9- Copying file 
  45.  10- Verifying file 
  46.  11- Updating Windows 2000/XP registry 
  47.      a) Support choice where Windows is installed: 
  48.      b) Element choice where Windows is installed: 
  49.      c) Directory where Windows is installed: 
  50.      d) Disk choice where partition to update is: 
  51.      e) Partition to update choice: 
  52.      f) Drive letter of partition to update: 
  53.      g) Confirmation: 
  54.  12- Updating BOOTSECT.DOS file 
  55.      a) Support choice where BOOTSECT.DOS file is: 
  56.      b) Element choice where BOOTSECT.DOS file is: 
  57.      c) Confirmation: 
  58.  13- Simulating an element 
  59.      a) Use of driver: 
  60.      b) Simulating an element: 
  61.      c) Remarks: 
  62.  14- Options file contents 
  63.  15- About what can be saved 
  64.      a) Whole disk: 
  65.      b) The Master Boot Record (MBR): 
  66.      c) First sectors of disk: 
  67.      d) Partition table: 
  68.      e) Partitions (all sectors): 
  69.      f) Partitions (only occupied sectors): 
  70.      g) FAT (12, 16 and 32) partitions (DOS/Windows): 
  71.      h) Ext2fs/ext3fs partitions (Linux): 
  72.      i) NTFS partitions: 
  73.      j) Floppy disks: 
  74.      k) DOS devices: 
  75.  16- What is not supported 
  76.  17- What can not be tested 
  77.  18- Acknowledgements 
  78.  
  79.  
  80. 1- Preamble 
  81. -----------
  82.  
  83. This program can be copied and freely redistributed. It can not be sold in any
  84. way either alone or included into another program. All what is in this package
  85. must be kept together into its original shape. 
  86.  
  87. This program is afforded as it is without any guarantee. No pursuit can be 
  88. engaged against its author in case of damages due to this program. 
  89.  
  90. All remarks are welcome. 
  91.  
  92.  
  93. 2- Presentation 
  94. ---------------
  95.  
  96. This program has as goal to realise saving, restoring and copying of disk 
  97. element (whole disk, Master Boot Record, partitions table, partition). This 
  98. allows saving hard disk contents to restore it later in case of a problem and 
  99. this without loosing time with installation and configuration of all software.
  100. This program allows running following tasks: 
  101.  
  102.   - saving an element (hard disk, partition, floppy disk, device).
  103.   - restoring an element that was saved before.
  104.   - copying an element.
  105.   - copying of files created by this program with modifying their size or 
  106. deflate rate.
  107.   - checking of created files.
  108.   - updating partition definition into Windows 2000/XP registry.
  109.   - updating BOOTSECT.DOS file.
  110.   - simulating element with created files.
  111.  
  112. For all information about partitioning or program please read additional 
  113. information. 
  114.  
  115.  
  116. 3- Needed configuration 
  117. -----------------------
  118.  
  119. Hardware: 
  120.  
  121.   - 386 or better.
  122.   - 4 Mb of memory (could work with less, but data compression could 
  123. potentially not be done). Free DOS memory must be at least 300 Kb.
  124.  
  125. Software: 
  126.  
  127.   - DOS (version >= 3.3).
  128.  
  129. This program does not work on Windows (see additional information) and it is 
  130. advised against using it with an emulator (mostly if it works into a 
  131. multitasking environment). 
  132. You will need also a FAT partition (or any other filesystem for which you have
  133. a DOS driver that allows to access it) to create saving file (it is not needed
  134. if you want to copy a partition as no file is created). 
  135.  
  136.  
  137. 4- Interface running 
  138. --------------------
  139.  
  140. Two interface types are available: 
  141.  
  142.   - an interface with textual windows that presents information with windows 
  143. that can be used with keyboard or mouse.
  144.   - an interface like the command line that presents information in a basic 
  145. way and that can be used only with keyboard.
  146.  
  147. Default interface is the first one. The second one is here to resolve some 
  148. incompatibility of some computers. 
  149. To know how to choose interface to use, please read chapter 5. 
  150.  
  151.   a) Textual windows interface
  152.  
  153. Interface can be used with keyboard or mouse. Keys common to all windows are: 
  154.  
  155.   - Tab, bottom arrow or right arrow to go from one element to another into a 
  156. window.
  157.   - Maj+Tab, up arrow or left arrow to go from one element to another into a 
  158. window (in reverse order compared to Tab).
  159.   - Ctrl+Tab to go from one window to another.
  160.   - Alt+Tab to go from one window to another (in reverse order compared to 
  161. Ctrl+Tab).
  162.   - Key assignments are defined to associate moving keys to a combination of 
  163. keys using Control key: 
  164.  
  165.                           +-------------+----------+
  166.                           | Moving keys | Grouping |
  167.                           +-------------+----------+
  168.                           | Home        | Ctrl+B   |
  169.                           | End         | Ctrl+E   |
  170.                           | Down        | Ctrl+D   |
  171.                           | Up          | Ctrl+U   |
  172.                           | Right       | Ctrl+R   |
  173.                           | Left        | Ctrl+L   |
  174.                           | Page Down   | Ctrl+N   |
  175.                           | Page Up     | Ctrl+P   |
  176.                           | BackSpace   | Ctrl+H   |
  177.                           | Delete      | Ctrl+X   |
  178.                           | Insert      | Ctrl+Y   |
  179.                           | Return      | Ctrl+M   |
  180.                           | Tab         | Ctrl+F   |
  181.                           | Shift+Tab   | Ctrl+G   |
  182.                           | Alt+Tab     | Ctrl+V   |
  183.                           | Ctrl+Tab    | Ctrl+W   |
  184.                           +-------------+----------+
  185.  
  186. In case no element seems to be selected, press one of these keys to select 
  187. first or last one switch key pressed. 
  188. In general, Enter key activates Ok button (in case no other button is 
  189. selected) and Escape key activates Cancel button. 
  190. All elements of windows are presented below: 
  191.  
  192.   - Command buttons: to activate them, you have to press Enter key when they 
  193. are selected, or on Alt+<red letter into button name> (even if button is not 
  194. selected). 
  195.     You can activate them by clicking on them. 
  196.     A button has a black background if it is selected and is flanked by ">" 
  197. and "<", else it has a green background. 
  198.   - Entry lines: it is the element that permits to enter data. You have just 
  199. to press character to add them where the cursor is. Delete and BackSpace keys 
  200. are used to suppress characters (respectively character that is on cursor and 
  201. character before cursor). Right and left arrows are used to move cursor and 
  202. Home and End keys are used to go to begin or end of string. When pressing 
  203. shift key when you use moving keys, you will select text that will be erased 
  204. when you will press a key other than the moving one. By pressing Ctrl+A you 
  205. select all the text. 
  206.     At last Insert key is used to switch from insert mode (default mode: 
  207. cursor is underlined cursor) to replacement mode (cursor is block-cursor) and 
  208. reciprocal. 
  209.     With mouse, you can move the cursor by clicking where you want it to be, 
  210. scroll the text by clicking on arrow on left or on right, select the text by 
  211. keeping button pressed when moving mouse and select all the text by double 
  212. clicking on it. 
  213.     An entry line is selected when it has the cursor that appears in it. 
  214.   - Listboxes: they are used to choose an element into a list. Up and bottom 
  215. arrows are used to move from one element to another, Page-Up and Page-Down 
  216. keys are used to go to begin and end of list. 
  217.     If right column is with a different colour and contains a # character, it 
  218. is because all elements can not be seen and the # character is used to locate 
  219. current selected element into list. 
  220.     With mouse, you can select an element. If scroll bar appears on right, you
  221. can change list position by clicking where you want to be, or by clicking 
  222. arrows on up or bottom. By double clicking on selected element you will 
  223. activate command associated to the list (generally Ok button). 
  224.     A selected item has a grey background if its listbox is not selected, and 
  225. has a black background if its listbox is selected. 
  226.   - Checkboxes: this element allows activating/deactivating an option. To 
  227. change state of a checkbox, you have to click on it or press Space key when it
  228. is selected. Checkbox is activated when an 'X' appears between square bracket,
  229. it is deactivated in other case. 
  230.     A checkbox is selected when its text is white, is not selected when its 
  231. text is grey. 
  232.  
  233.   b) Command line interface
  234. This interface is more basic and can only be used with keyboard. At any moment
  235. pressing Escape key stop execution of program. 
  236. Elements are following: 
  237.  
  238.   - Lists: a list is displayed with a number on left. You have to enter 
  239. element number when it is asked to choose it. If the list is bigger than 
  240. screen size, you will have to press a key to make it scrolling. 
  241.   - Entering information: you have to enter asked information (by example a 
  242. filename). Delete key allows removing last character (what you have already 
  243. entered is displayed on next line without the last character and you can 
  244. continue to enter characters). It is not possible to move cursor. 
  245.   - Choices: they are made of a question with answer possibilities given 
  246. between brackets (sample: (Y/N)). You have to give an answer by choosing into 
  247. these possibilities. Letter case is not taken into account. 
  248.  
  249.  
  250. 5- Use of program 
  251. -----------------
  252.  
  253. Use: savepart.exe [-l en|fr|fr_2] [-cm|-nm|-pm] [-f <options file>] [-ncd] 
  254. [-nvd] [-nvf] [-cui|-tui|-bui] [-b|-c|-d|-i|-m|-r|-s|-t|-u] 
  255.  
  256.   -l: this option allows you to select language to use. You have to use this 
  257. option only if automatically recognised language is not correct. If an error 
  258. appears before this option is analysed, error message will be written with the
  259. automatically detected language. Recognised languages are: 
  260.  
  261.     * en: English.
  262.     * fr: French.
  263.     * fr_2: French with others code pages.
  264.  
  265. Detection of language set language to French when detecting France, French 
  266. Canada, French Guyana, French Antilles or French Polynesia settings, else it 
  267. set English. 
  268. fr_2 is to be used in case accents are not well displayed. I do not know for 
  269. which settings it was (and I am not sure there was a DOS setting for it), it 
  270. is accents as Windows and Linux code them (ANSI). I put it in case of need (if
  271. somebody use it, please tell me with which configuration) and it is not 
  272. automatically detected. 
  273.  
  274.   -cm: this option is the default way mouse is used. 
  275.  
  276.   -pm: this option is another way to use mouse that can be used in case the 
  277. first one does not work (it is default method with Windows NT/XP). Using this 
  278. method can prevent to detect some double clicks. 
  279.  
  280.   -nm: this option allows you to avoid using mouse. You would have to use it 
  281. only if mouse use seems to pose a problem with 2 previouses method. 
  282.  
  283.   -f <options file>: this option allows you to use batch mode. To know 
  284. contents of this file, please read chapter 14. 
  285.  
  286.   -ncd: this option disables the check that created/read file is not on 
  287. saved/restored element. It is better to use it only in case DOS drive letter 
  288. attribution is wrong. 
  289.  
  290.   -nvd: this option disables the check that sectors are correctly written. 
  291. This speeds up restoring, but can prevent from detecting bad sectors on disk. 
  292.  
  293.   -nvf: this option disables the check that files are correctly written and 
  294. that sectors are correctly written when using DOS devices access. This speeds 
  295. up saving (and restoring in second case), but can do that created files or 
  296. restored devices are incorrect because disk where they are written begins to 
  297. be damaged. 
  298.  
  299.   -cui|-tui|-bui: this option allows you to select user interface: 
  300.  
  301.     * -cui: command line interface.
  302.     * -tui: textual window interface.
  303.     * -bui: textual window interface using BIOS calls to write on screen. This
  304. ensures a better compatibility but goes slower.
  305.  
  306. If this option is not given, textual window interface is used. This option has
  307. to be used only if this interface poses a problem (by example nothing appends 
  308. when program begins). In this case, you can first try with the -bui option, 
  309. and if it still does not work, use the -cui one. 
  310.  
  311.   -b|-c|-d|-i|-m|-r|-s|-t|-u: this option allows selecting action to do: 
  312.  
  313.     * -b: update BOOTSECT.DOS file.
  314.     * -c: copy an element.
  315.     * -d: copy files created by this program to modify them (deflate rate or 
  316. maximum size).
  317.     * -i: get information from driver.
  318.     * -m: simulate an element with saving files.
  319.     * -r: restore an element.
  320.     * -s: save an element.
  321.     * -t: check a saving file.
  322.     * -u: update Windows 2000/XP registry.
  323.  
  324. If this option is not given, program asks you what you want to do. To have 
  325. information about each action, please read following chapters. 
  326.  
  327. Return code of program can be one of the following: 
  328.  
  329.   - 0 if no error has been detected.
  330.   - 1 if en error has appeared.
  331.   - 2 if user cancels execution.
  332.   - 3 if no error has been detected, but there was some bad sectors.
  333.   - 255 if some exception has been raised.
  334.  
  335. Remarks: 
  336. --------
  337.  
  338.   - -f <option file> can not be used when copying a partition or files.
  339.   - copying or checking file can be executed with Windows (in this case it 
  340. will certainly run faster than with DOS).
  341.  
  342.  
  343. 6- Saving element 
  344. -----------------
  345.  
  346. This is the part executed when you use -s option or if you choose it when 
  347. program asks for it. 
  348.  
  349. Execution follows below diagram (if not in batch mode): 
  350.             support choice
  351.                   |
  352.                   V
  353.         source element choice
  354.                   |
  355.                   V
  356.             [part to save]
  357.                   |<------------------------+---+
  358.                   V                         |   |
  359.              file choice                    |   |
  360.                   |                         |   |
  361.                   V                         |   |
  362.            file size choice                 |   |
  363.                   +-------------------------+   |
  364.                   V                             |
  365.           [deflating choice]                    |
  366.                   |                             |
  367.                   V                             |
  368.             saving window                       |
  369.                   +-----------------------------+
  370.                   V
  371.         options file creation
  372.                   |
  373.                   V
  374.                  end
  375.  
  376.  
  377.   a) Support choice: 
  378. You have to choose the disk, floppy drive or DOS device where the element to 
  379. save is. 
  380. Disk access mode is given: 
  381.  
  382.   - standard access: with this access mode disk is accessed with its physical 
  383. definition (cylinder, sector, head). With this access mode sector size can not
  384. been known (it is taken to 512 bytes which is most common value) and disk size
  385. is at most of 8 Gb.
  386.   - extended access: it is a new access mode, which becomes the standard one. 
  387. In this case hard disk is seen as an unique lead (it does not care of physical
  388. definition). This mode allows to use more than 8 Gb hard disk. Nevertheless 
  389. size reported can be wrong (without any consequence). Sector size can be 
  390. different from 512 bytes (but this value is always the most common).
  391.  
  392. For floppy drive, access is always standard access and for DOS devices it 
  393. appears as extended for Partition Saving, but as it is DOS driver that 
  394. accesses device, this is this last one that choose access mode. 
  395.  
  396.   b) Source element choice: 
  397. This window allows you to select part of disk to save. 
  398. Support allows you to know if element is directly related to disk or to a 
  399. partition. In the case of a partitions support is used to know if partition is
  400. a main partition or if it is a partition defined into an extended partition. 
  401. Partition number is the number as given into Linux. 
  402. Drive name is the DOS drive name that corresponds to partition (if it is a DOS
  403. partition). This can be wrong because some new partition type can be defined 
  404. (for example with Windows95, several new partition types have been defined for
  405. VFAT16 and FAT32 partitions). 
  406. In the case of an element related to disk, element type allows to identify 
  407. element: it can be the whole disk, the master boot record (first sector of 
  408. disk), sectors that are before first partition and partition table. In the 
  409. case of an element related to partition, element type is partition type: this 
  410. is used to identify OS install on. As this type is not normalised, list is not
  411. exhaustive. 
  412. Size gives element size. By default, it is expressed in Mb, except in cases 
  413. where it is followed by Kb. 
  414. Partition name is the label (or volume name). It is given when it can be 
  415. found. If for DOS drive, there seems to be incoherence between drive letter 
  416. and partition name, this last one is certainly correct and drive letter wrong.
  417. For floppy drive, this window does not appear. 
  418. For DOS devices, you can choose the device to save into list given you those 
  419. DOS knows as having a sector access and having a FAT filesystem. 
  420.  
  421. Remark: 
  422. -------
  423. If you save a main partition of extended type, you will save all partitions 
  424. defined into this extended partition (all that have "Extended n <extended 
  425. partition chosen>" as support). 
  426.  
  427.   c) Part to save:  
  428. This window only appears if chosen partition is of one of the type for which 
  429. saving only occupied sectors is available. In this case, it proposes following
  430. choices: 
  431.  
  432.   - "All sectors": in this case, all sectors of partition are saved without 
  433. considering if they are occupied or not. This make that saving need more space
  434. than in following case, but allows to save a partition even if it is heavily 
  435. damaged (by example to save it before trying some radical way to repair it). 
  436. Constraints are that this partition can only be restored on a partition with 
  437. the same format (hard disk must have the same size and physical definition, 
  438. and partition must have the same size and be at the same place).
  439.   - "Occupied sectors": in this case, only occupied sectors are saved. This 
  440. has advantage that saving need less space and allows restoring this partition 
  441. on a different partition (it can be on another disk, at another place and have
  442. another size), but there were still some size constraints. Disadvantages are 
  443. that it needs more memory and saving can fail if your partition is damaged (by
  444. example if important sectors are damaged).
  445.   - "Partition on itself": this case can appear only for FAT partitions. It is
  446. the same as previous case but allows creating a saving file on the saved 
  447. partition (what must NOT be done for the 2 previous cases). Constraints are 
  448. that it needs more memory, and you will have to do a scandisk on the restored 
  449. partition (after having restarted your computer) to correct some potential 
  450. errors on the size of created files (those you have used for restoration are 
  451. correct, that are those on the restored partition that are not).
  452.  
  453. If partition to save is not a partition for which saving only occupied sectors
  454. is available or if you have chosen an element that is related to disk, this 
  455. window will not appear and all sectors will be saved. 
  456. To have more information on saving only occupied sectors, please read chapter 
  457. 15. 
  458.  
  459. Remark: 
  460. -------
  461.  
  462.   - a window informing you of searching for last occupied sector is displayed 
  463. between maximum filesize choice and saving window. In the case you choose one 
  464. of the two options where only occupied sectors are saved, this window can be 
  465. displayed for a long time. In the case you save all sectors, you will 
  466. certainly not see it because it is displayed too shortly.
  467.  
  468.   d) File choice: 
  469. In this window you can choose name and location of file where to save 
  470. partition data. For this purpose you can type into "File" line the name of the
  471. file (with possibly its path) or select one into files list or select another 
  472. directory with drives and directories lists. by default "*.*" is displayed 
  473. which means that all files are displayed. 
  474. A second window gives you possibility to use automatic naming. With this 
  475. option program will generate automatically filename for following file if 
  476. several files are needed. In this purpose program uses first filename and 
  477. changes (or adds) the two last characters of file extension (three lasts if 
  478. more than 100 files are needed) by file number (with using 0 for number of 
  479. first file). Be example if your first file is called "disk_c.par", the second 
  480. one will be "disk_c.p01", the third "disk_c.p02", ..., the hundred and one 
  481. "disk_c.100". 
  482. A third window give you the list of DOS drives with free space and the full 
  483. size of the partition (without taking into account the fact that only occupied
  484. sectors can be saved and that deflating is used). 
  485.  
  486. Remarks: 
  487. --------
  488.  
  489.   - if a drive does not appear into drives list, it is because it can not be 
  490. detected. Nevertheless, you can enter its letter into file name line (in this 
  491. case drive list would not give the right name, but there was no consequence).
  492.   - if selected file already exists, a window is opened to confirm selection 
  493. (if file is read-only, the window will inform you that it can not be removed).
  494.   - if you save a FAT partition, you should NOT create the file on the 
  495. partition you save unless you choose "Partition on itself" option into window 
  496. asking you what you want to save. If you do not have chosen this option and 
  497. try to create a file on partition to save, a warning window informs you of 
  498. this potential problem. It is not displayed in the case you use "-ncd" option.
  499.   - when using automatic naming, file existence is not checked except for the 
  500. first file, so file will be removed if it exists (by example, avoid to call 
  501. the first file <name>.<letter>01 because it will be erased when creating 
  502. second one).
  503.  
  504.   e) File size choice: 
  505. With this window you can choose the maximum size you want the file does. If 
  506. more space is needed to save partition, a new file will be asked to you when 
  507. this one will be full. If free size on drive is less than 10 Mb, asked size is
  508. in kb, else it is in Mb. This maximum size can not be bigger than the minimum 
  509. between drive free size and 2047 Mb. 
  510. If you enter 0, you go back to the file choice window. 
  511.  
  512.   f) Deflating choice: 
  513. If you have enough memory, a window asking which deflating level you want to 
  514. use to deflate data. Level goes from 0 (no deflating) to 9 (maximum 
  515. deflating). Level generally used by deflate program is level 6. More the 
  516. deflating level is high, more execution will be long (but there was only a 
  517. little change for inflating). 
  518. If you do not have enough memory, a window saying that is opened. In this case
  519. no deflating is done (<=> 0 level). 
  520. This window will be displayed only after the choice of the first file (for 
  521. others file the same deflating rate is used). 
  522. Deflating algorithm used is the gzip one. 
  523.  
  524.   g) Saving window: 
  525. This window gives you advancement of saving. 
  526. Upper progress bar gives advancement for element to save. Lower progress bar 
  527. gives advancement for file in relation to its maximum size. So it is not 
  528. abnormal for this progress to not reach 100% when saving ends. 
  529. Remaining time is an estimation of remaining time. Its exactness is strongly 
  530. influenced by the fact that deflating or saving of only occupied sectors is 
  531. used. 
  532. Errors list is the list of errors detected when reading sectors on disk. If 
  533. you have the same errors when restoring and if, when you use disk checking 
  534. program (like surface checking of scandisk), bad sectors appear, these errors 
  535. have no consequence (if there was no data on these sectors before saving, but 
  536. it is OS rules to do that). 
  537. If the maximum file size you give is not enough to save all data (progress bar
  538. for file reaches 100%), a new file name is asked to you with its maximum size.
  539. While saving is running, you can not activate Ok button (only cancel button 
  540. can be activated to stop saving). When saving is ended, Ok button becomes 
  541. active, cancel button inactive, and line marked "State" changes from "Running 
  542. ..." to "Ended.". 
  543.  
  544.   h) Options file creation:  
  545. If you do not use batch mode (or if some options have been added to those 
  546. given into batch mode), a window will ask you if you want to create an options
  547. file that will allow you to use batch mode for future save/restore of this 
  548. partition. If you answer "yes", a window will ask you to give its name. This 
  549. file will content all options you have used. 
  550.  
  551. Remarks: 
  552. --------
  553.  
  554.   - content of this file is valid only as long as you do not change your hard 
  555. drive partitioning.
  556.   - names of files used to save data are absolute file names. So you will have
  557. to change this options file if you move these saved files.
  558.   - you can create this file manually.
  559.   - DOS name (8.3: 8 characters maximum for file name and 3 characters maximum
  560. for extension) must be used for file names given into options file.
  561.  
  562.   i) Examples: 
  563. Let consider you have 2 hard drives partitioned like below (next to partition 
  564. type you have <DOS>|<Linux> convention naming): 
  565.  
  566.                    Disk 1                             Disk 2
  567.      +-------------------------------+  +-------------------------------+
  568.      | Main partition 1:             |  | Main partition 1:             |
  569.      | DOS FAT 32          (C:|hda1) |  | DOS FAT 32          (D:|hdb1) |
  570.      +-------------------------------+  |                               |
  571.      | Main partition 2:             |  +-------------------------------+
  572.      | DOS extended        (  |hda2) |  | Main partition 2:             |
  573.      | +---------------------------+ |  | DOS extended        (  |hdb2) |
  574.      | | Extended partition 1 of   | |  | +---------------------------+ |
  575.      | | main partition 2:         | |  | | Extended partition 1 of   | |
  576.      | | DOS FAT 32      (E:|hda5) | |  | | main partition 2:         | |
  577.      | +---------------------------+ |  | | DOS FAT 32      (G:|hdb5) | |
  578.      | | Extended partition 2 of   | |  | |                           | |
  579.      | | main partition 2:         | |  | +---------------------------+ |
  580.      | | DOS VFAT 16     (F:|hda6) | |  +-------------------------------+
  581.      | +---------------------------+ |  | Main partition 3:             |
  582.      +-------------------------------+  | Empty               (  |hdb3) |
  583.      | Main partition 3:             |  |                               |
  584.      | Linux ext2          (  |hda3) |  +-------------------------------+
  585.      +-------------------------------+  | Main partition 4:             |
  586.      | Main partition 4:             |  | Linux swap          (  |hdb4) |
  587.      | Empty               (  |hda4) |  |                               |
  588.      +-------------------------------+  +-------------------------------+
  589.  
  590. If you want to save partition containing D: drive, you execute savepart.exe -s
  591. , then: 
  592.  
  593.   - choose the second disk,
  594.   - choose first partition,
  595.   - choose to save all sectors or only occupied ones (second solution will 
  596. need less space),
  597.   - choose to inflate file or not,
  598.   - choose path and name of file to create (switch free size on drives, but 
  599. try to choose a drive on first disk for the saving to go faster, so on C:, E: 
  600. or F:), by example c:\disk_d.par.
  601.   - if you want to burn the file on a CD you will have to choose a maximum 
  602. file size of 620 Mb.
  603.  
  604. From there, saving begins. If 620 Mb is not enough to store all data, you will
  605. have to give path and name for a second file, then its maximum size, .... Once
  606. saving ends, you can create the batch file or not. If you create batch file 
  607. and burn files onto CD, put batch file with first saving file and do not 
  608. forget to change path to saved file into batch file. 
  609.  
  610. If you want to save the Linux partition, you will have to: 
  611.  
  612.   - select first disk,
  613.   - choose the third partition and then continue as in previous case (as Linux
  614. partition is on first disk, it is better to create saved file on second disk).
  615.  
  616.  
  617. 7- Restoring element 
  618. --------------------
  619.  
  620. It is the part that is executed when you use -r option or when you select this
  621. option when program asks for it. 
  622.  
  623. Execution follows below diagram (if not in batch mode): 
  624.              file choice
  625.                   |
  626.                   V
  627.       destination element choice
  628.                   |<------------------------------+
  629.                   V                               |
  630.            restoring window                       |
  631.                   +-----------> file choice ------+
  632.                   V
  633.                  end
  634.  
  635.  
  636.   a) File choice: 
  637. It the same window as the one used for file choice when saving. Selected file 
  638. header is checked and an error is given if this one is not correct. 
  639. Automatic naming can be selected for following filename to be generated 
  640. automatically (filename must follow rule described into chapter 6.d). 
  641.  
  642.   b) Destination element choice: 
  643. This windows gives list of elements that are compatible with those saved into 
  644. file. You will have to choose one of the elements into this list to do 
  645. restoring. 
  646. At the top of window is a description of saved element. Below is the list of 
  647. compatible elements. 
  648. "Dis" column gives disk number on which element is. 
  649. "Support" column gives support type on which element is. 
  650. "Num" column gives partition number as it is known with Linux in case element 
  651. is a partition. 
  652. "L." column gives DOS drive of element if it is a DOS partition. 
  653. "Id." colum allows to know if element is identical to the one saved. If it is 
  654. the case an "X" will be set into this column else nothing is written. 
  655. Size gives element size. By default, it is expressed in Mb, except in cases 
  656. where it is followed by Kb. 
  657. Partition name is the label (or volume name). It is given when it can be 
  658. found. If for DOS drive, there seems to be incoherence between drive letter 
  659. and partition name, this last one is certainly correct and drive letter wrong.
  660. For more details on element compatibility, please read chapter 15. 
  661. If no compatible element is found, a message is reported to you and program 
  662. ends. 
  663.  
  664. !!!!! Warning !!!!!:  
  665. --------------------
  666. Restoring data on a partition erases all data currently on chosen element. 
  667. Moreover, you must NOT choose the disk (when restoring a whole disk) or the 
  668. partition on which a file used for this restoration is (indeed it will be 
  669. erased during restoration and so would no more be accessible and it will 
  670. result into an error and the end of the restoration).
  671. A warning window informs you if the selected file is on the disk or partition 
  672. to restore. This window is only displayed for the first file (as for the 
  673. following files, you must NOT access the disk or partition you are restoring) 
  674. and is not displayed in the case you use "-ncd" option. 
  675.  
  676.   c) Restoring window: 
  677. This window permits you to follow restoration advancement. 
  678. Upper progress bar is advancement for file. 
  679. Lower progress bar is advancement for chosen element. 
  680. Remaining time is an estimation of remaining time. Its exactness is strongly 
  681. influenced by the fact that data have been deflated or saving was done only 
  682. for occupied sectors. 
  683. Errors list contains list of errors that were detected when writing sectors on
  684. disk. If errors are the same that these on saving, there was no consequence 
  685. (if they are not the same, or if they are fewer or more, you can have lost 
  686. data: run a program like scandisk to try to resolve this problem). 
  687. If the element has been saved into several files, you must give them when they
  688. are asked to you. 
  689. While restoring is running, you can not activate Ok button (only cancel button
  690. can be activated to stop restoring). When restoring is ended, Ok button 
  691. becomes active, cancel button inactive, and line marked "State" changes from 
  692. "Running ..." to "Ended.". 
  693.  
  694. !!!!! Warning !!!!!: 
  695. --------------------
  696.  
  697.   - when choosing next file, you must not access to the drive corresponding to
  698. the disk or partition being restored (if it is a DOS partition). Indeed this 
  699. drive is being written and so the file allocation table is wrong (as if you 
  700. want to access a file when a drive is being formatted).
  701.   - once the element is restored, reset your computer if you have restored a 
  702. DOS partition (or a partition that can be accessed under DOS). This is needed 
  703. for DOS to update information about this partition.
  704.   - if you cancel a running restoration, you have to format the destination 
  705. element (or do a new restoration).
  706.   - if when saving, you had created saved file on saved partition, after 
  707. having reseted your computer you have to do a scandisk on restored partition 
  708. to remove errors on size of created file.
  709.   - if you restore a partition on another partition than the one that was 
  710. saved and you have Windows 2000 or XP, you have to update registry for this 
  711. partition. For this, please read chapter 11.
  712.   - if the partition you restore is a system partition that is launched using 
  713. the Windows XP multiboot feature (without being the Windows XP partition) and 
  714. you restore this partition on another partition than the one that was saved, 
  715. you have to update the BOOTSECT.DOS file for this partition. For this, please 
  716. read chapter 12.
  717.  
  718.   d) Examples: 
  719. With partitioning set as into examples of saving a partition, you want to 
  720. restore partitions previously saved. 
  721. When restoring partition that contains D: drive, you execute savepart -r and: 
  722.  
  723.   - choose the file where saving has been done,
  724.   - choose the partition that you want to restore. If you have saved all 
  725. sectors, only partition that contains D: drive will be listed (if the 2 hard- 
  726. drives have the same format and C: and D: drives have the same size, C: drive 
  727. can be also listed). 
  728.     If you have saved only occupied sectors, partitions containing C:, D:, E: 
  729. and G: drives can be listed switch the size they have (partition containing F:
  730. drive can not be listed as it has not the same file system type). In this case
  731. partition that contains D: drive will have an "X" into "Id." column but not 
  732. others (if the 2 hard drives have the same format and C: and D: drives have 
  733. the same size, C: drive can also have an "X").
  734.   - once the partition is chosen, restoring begins. If saving was done into 
  735. several files, second file will be asked when the first one is finished, ....
  736.  
  737. Once restoring ends, reboot your computer for DOS to take into account 
  738. modifications done onto D: drive. 
  739.  
  740. If you want to restore the Linux partition, you will have to do the same 
  741. things as above. In this case only third partition of first disk will be 
  742. listed as it is the only Linux partition (the Linux swap partition has not the
  743. same file system). 
  744.  
  745.  
  746. 8- Copying element 
  747. ------------------
  748.  
  749. It is the part executed when you use -c option or when you select this option 
  750. when program asks for it. 
  751.  
  752. Execution follows below diagram: 
  753.             support choice
  754.                   |
  755.                   V
  756.         source element choice
  757.                   |
  758.                   V
  759.             [part to save]
  760.                   |
  761.                   V
  762.       destination element choice
  763.                   |
  764.                   V
  765.             copying window
  766.                   |
  767.                   V
  768.                  end
  769.  
  770.  
  771.   a) Support choice: 
  772. Please read same window presentation into "saving element" chapter (chapter 
  773. 6.a). 
  774.  
  775.   b) Source element choice: 
  776. Please read same window presentation into "saving element" chapter (chapter 
  777. 6.b). 
  778.  
  779.   c) Part to save: 
  780. Please read same window presentation into "saving element" chapter (chapter 
  781. 6.c). 
  782.  
  783.   d) Destination element choice: 
  784. Please read same window presentation into "restoring element" chapter (chapter
  785. 7.b) with changing all references to "file" by "element to copy". 
  786.  
  787.   e) Copying window: 
  788. This window permits you to follow copying advancement. 
  789. Upper progress bar is advancement for element to copy. 
  790. Lower progress bar is advancement for destination element. 
  791. Remaining time is an estimation of remaining time. Its exactness is strongly 
  792. influenced by the fact that all sectors or only occupied sectors are copied. 
  793. Errors list is list of errors that were found when reading sectors on element 
  794. to copy or when writing sectors on destination element. If some errors appear,
  795. it is advised to use scandisk or equivalent program on the erroneous element. 
  796. As long as the copy is running, you can not press Ok button (only cancel 
  797. button is active to stop copying). Once copying is ended, Ok button becomes 
  798. active, cancel button inactive and line marked "State" changes from "Running 
  799. ..." to "Ended.". 
  800.  
  801. !!!!! Warning !!!!!: 
  802. --------------------
  803.  
  804.   - once the element is copied, reset your computer if you have restored a DOS
  805. partition (or a partition that can be accessed under DOS). This is needed for 
  806. DOS to update information about this partition.
  807.   - if you cancel a running copy, you have to format the destination element 
  808. (or do a new copy or restoration on it).
  809.   - if you restore a partition on another partition than the one that was 
  810. saved and you have Windows 2000 or XP, you have to update registry for this 
  811. partition. For this, please read chapter 11.
  812.   - if the partition you restore is a system partition that is launched using 
  813. the Windows XP multiboot feature (without being the Windows XP partition) and 
  814. you restore this partition on another partition than the one that was saved, 
  815. you have to update the BOOTSECT.DOS file for this partition. For this, please 
  816. read chapter 12.
  817.  
  818.   f) Examples: 
  819. With partitioning used into examples of saving a partition, you want to copy 
  820. partition containing D: drive onto partition containing E: drive (with the 
  821. condition that size is compatible). 
  822. For that purpose, you run savepart -c and: 
  823.  
  824.   - select second hard drive,
  825.   - select the first partition,
  826.   - choose to save only occupied sectors (for the copy to be possible on a 
  827. partition that has a different format),
  828.   - choose the destination partition. Partitions containing C:, E: and G: 
  829. drives will be listed if their size is compatible. Partition containing D: 
  830. drive will not be listed, as it is the partition to copy. Partition containing
  831. F: drive will not be listed, as it has not the save file system type. From 
  832. here, copying run. Once this is ended, reboot your computer.
  833.  
  834.  
  835. 9- Copying file 
  836. ---------------
  837.  
  838. This is the part executed when you use -d option or when you select this 
  839. option when program asks for it. 
  840.  
  841. This part allows you to copy files with modifying their deflate rate or 
  842. maximum size. 
  843.  
  844. Program begins with asking you the source filename (please read chapter 7.a), 
  845. the name and maximum size of destination file and deflate rate (please read 
  846. chapters 6.d, 6.e and 6.f). The copying window displays advancement for source
  847. file into upper progress bar and advancement for destination file into lower 
  848. progress bar. If several source or destination files are needed, they will be 
  849. asked to you when they are needed. 
  850.  
  851. Remarks: 
  852. --------
  853.  
  854.   - only files created by this program can be used with this part.
  855.   - program checks that destination file has not the same name as source file 
  856. to avoid source file to be erased before being copied. Nevertheless it can not
  857. check that destination file erase another source file than the one in use, so 
  858. be careful to not confuse source and destination file.
  859.   - you can use any other compression program to do that, but you will have to
  860. deflate files before being able to use them with this program, that is not the
  861. case for this option.
  862.  
  863.  
  864. 10- Verifying file 
  865. ------------------
  866.  
  867. This is the part that is executed when you use -t option or when you select 
  868. this option when program asks for it. 
  869.  
  870. This allows checking that saving file are correct. This consists into checking
  871. header of files, size and checksum of data (once they are inflated if they are
  872. deflated). If a saving was done in several files, you are obliged to check all
  873. files. No data is written on disk or is modified into files. 
  874.  
  875. Execution begins with asking source filename (please read chapter 7.a). The 
  876. checking window gives into the upper progress bar the state of the check for 
  877. the current file. If saving was done into several files, following files will 
  878. be asked to you. 
  879.  
  880.  
  881. 11- Updating Windows 2000/XP registry 
  882. -------------------------------------
  883.  
  884. This is the part that is executed when you use -u option or when you select 
  885. this option when program asks for it. 
  886.  
  887. Windows 2000 and XP store partition position into registry in order to keep 
  888. association between a partition and corresponding driver letter. Partition 
  889. position is composed of two parts: disk number that is stored into MBR (4 
  890. bytes) and offset of first byte of partition on disk (8 bytes). So if you copy
  891. a partition on another disk (without copying MBR) or if you move begin of a 
  892. partition, you have to update these information into registry for each 
  893. partition you moved. In case of restoring a partition when it has not been 
  894. moved, this is not needed. 
  895.  
  896. Execution is composed of 2 parts: first to give where Windows is installed 
  897. such as program is able to find registry file, second to give partition to 
  898. update into this registry. If you copy the Windows 2000/XP partition, the 
  899. Windows installation that should be updated is the one that was the 
  900. destination of copy. 
  901.  
  902. Execution follows below diagram: 
  903. support choice where Windows is installed
  904.                     |
  905.                     V
  906. element choice where Windows is installed
  907.                     |
  908.                     V
  909.   directory where Windows is installed
  910.                     |
  911.                     V
  912. disk choice where partition to update is
  913.                     |
  914.                     V
  915.       partition to update choice
  916.                     |
  917.                     V
  918.   drive letter of partition to update
  919.                     |
  920.                     V
  921.               confirmation
  922.                     |
  923.                     V
  924.                    end
  925.  
  926.  
  927.   a) Support choice where Windows is installed: 
  928. You have to choose disk or DOS devices list where Windows installation which 
  929. registry should be updated is. 
  930.  
  931.   b) Element choice where Windows is installed: 
  932. You have to choose the partition (if a disk has been chosen into first window)
  933. or the DOS device (if DOS devices has been chosen into first window) where 
  934. Windows installation which registry should be updated is. 
  935.  
  936.   c) Directory where Windows is installed: 
  937. You have to give Windows installation directory. As a rule, this directory is 
  938. called "WINDOWS", unless you give another name when installing it. If you give
  939. a wrong directory name, or if installed Windows version is not correct, you 
  940. will get an error message telling you that registry file has not been found. 
  941.  
  942.   d) Disk choice where partition to update is: 
  943. You have to choose disk on which is partition you want to update definition 
  944. into registry. 
  945.  
  946.   e) Partition to update choice: 
  947. You have to choose partition for which you want to update definition into 
  948. registry. 
  949.  
  950.   f) Drive letter of partition to update: 
  951. This window shows list of driver letter that could be modified with their 
  952. current definition. First column is driver letter, second column is disk 
  953. identifier where corresponding partition is and third column is beginning byte
  954. of partition on disk. Last column displays the two previous columns as regedit
  955. does. 
  956. You have to choose into this list the drive letter you want to affect to 
  957. partition selected with two previous windows. Program will modify the 
  958. corresponding definition for this letter with value defined on top of window. 
  959.  
  960.   g) Confirmation: 
  961. Program asks you confirmation of registry modification. It gives you key name 
  962. that will be modified, its previous and new value. A value is a 12 hexadecimal
  963. numbers, four first being disk number, height last offset of partition on disk
  964. (it is the same format as the last column of previous window). 
  965.  
  966.  
  967. 12- Updating BOOTSECT.DOS file 
  968. ------------------------------
  969.  
  970. This is the part that is executed when you use -b option or when you select 
  971. this option when program asks for it. 
  972. In order to be able to manage multi-boot with another DOS or Windows version, 
  973. Windows XP saves the boot sector of other Windows version into BOOTSECT.DOS 
  974. file on the same partition and modifies this boot sector to set a new one 
  975. (this one asks for the Windows version to run depending on BOOT.INI file 
  976. content). So if you copy on another disk or move the begin of the partition 
  977. where other Windows version is, this file should be modified to take into 
  978. account this modification. This option is for this purpose. 
  979.  
  980. Warning: this option modifies only some parameters into BOOTSECT.DOS to take 
  981. into account modifications that can have be done into element boot sector, it 
  982. does not allow creating or completing a BOOTSECT.DOS file. 
  983.  
  984. Execution allows choosing partition where BOOTSECT.DOS file is to update it 
  985. accordingly to current boot sector of element. Execution follows below 
  986. diagram: 
  987. support choice where BOOTSECT.DOS file is
  988.                      |
  989.                      V
  990. element choice where BOOTSECT.DOS file is
  991.                      |
  992.                      V
  993.                 confirmation
  994.                      |
  995.                      V
  996.                     end
  997.  
  998.  
  999.   a) Support choice where BOOTSECT.DOS file is:
  1000. You have to choose disk, floppy disk or DOS devices list on which BOOTSECT.DOS
  1001. file to modify is. 
  1002.  
  1003.   b) Element choice where BOOTSECT.DOS file is:
  1004. You have to choose partition (if a disk has been chosen in first window) or 
  1005. DOS device (if DOS devices has been chosen in first window) on which is the 
  1006. BOOTSECT.DOS file to modify. You will get an error message if chosen element 
  1007. does not have a BOOTSECT.DOS file or if this one has a wrong size or does not 
  1008. contain a boot sector signature. 
  1009.  
  1010.   c) Confirmation:
  1011. Program asks you to confirm the BOOTSECT.DOS file modification. If you 
  1012. confirm, it will be modified to update some parameters accordingly to those 
  1013. into current element boot sector. 
  1014.  
  1015.  
  1016. 13- Simulating an element 
  1017. -------------------------
  1018.  
  1019. This part is about use of driver (DRVPART.SYS) and about "-m" and "-i" options
  1020. of savepart. The goal of this driver is primarily to allow access to a 
  1021. partition contained into saved file in order to recover some files. 
  1022.  
  1023.   a) Use of driver:
  1024. DRVPART.SYS is a DOS driver that allows simulating that a new drive exists. 
  1025. This drive is simulated with saved file created previously. 
  1026. As all DOS driver, DRVPART.SYS must be loaded into memory owing to CONFIG.SYS 
  1027. file. This text file is on the boot disk (either C: or A: depending on whether
  1028. you boot from hard disk or floppy disk). For the driver to be loaded you have 
  1029. to add at the end of this file the line: 
  1030. DEVICE=<location>\DRVPART.SYS <options> 
  1031. with <location> equal to directory where the file DRVPART.SYS is. Once this 
  1032. line has been added, the next time you boot your computer, you will have a new
  1033. drive (the drive letter is defined by DOS and is the next letter following 
  1034. those of your last drive). 
  1035. DRVPART.SYS can have 2 options: 
  1036.  
  1037.   - the first give size of sectors in bytes. It must be between 512 and 32768 
  1038. and must be a multiple of 512. If this option is not given, a default size of 
  1039. 512 bytes is used (it is the most common value).
  1040.   - the second gives the memory size in Kb that is always used by this program
  1041. to be able to run. This must be equal or more than 1024. If this option is not
  1042. given, a size of 1024 Kb is used. If you want to give this option, you must 
  1043. give the sectors size.
  1044.  
  1045. Examples: 
  1046. ---------
  1047. DEVICE=C:\DRVPART.SYS 
  1048. Driver is loaded with default value of 512 bytes for sectors size and 1024 Kb 
  1049. for memory. 
  1050. DEVICE=C:\DRVPART.SYS 512 4096 
  1051. Driver is loaded with a sectors size of 512 bytes and an allocated memory of 
  1052. 4096 Kb. 
  1053.  
  1054. Memory permanently used is memory used to stock temporarily sectors asked by 
  1055. others programs. Switch this need, this size can dynamically be 
  1056. increased/decreased (but never goes bellow the size defined when loading). The
  1057. worse case of memory use is certainly when a program want to know free size on
  1058. drive (as when you do a "dir"). 
  1059. Memory used by driver is XMS or EMS memory (depending on what is present). 
  1060. These types of memory is standard memory (you do not need specific hardware), 
  1061. it is called XMS or EMS depending on the way it is managed. XMS memory is 
  1062. managed by HIMEM.SYS driver (a DEVICE=<location>\HIMEM.SYS line has to be 
  1063. present on beginning of CONFIG.SYS file) and EMS memory is managed by 
  1064. EMM386.EXE driver (or some other that does the same thing) (a 
  1065. DEVICE=<location>\EMM386.EXE line has to appear into CONFIG.SYS file just 
  1066. after the one containing HIMEM.SYS). If no one of these two types of memory is
  1067. present, driver will not be loaded. To be noticed that using EMS memory can 
  1068. limit useful memory size to 32 Mb. 
  1069. Driver can generate following messages when loading: 
  1070.  
  1071.   - "Driver has been initialised. It simulates drive <letter>:.": driver has 
  1072. been correctly loaded and it simulates drive having <letter> letter.
  1073.   - "Parameter for size of sectors is not correct: it must be between 512 and 
  1074. 32768 and be a multiple of 512.": you have to modify the first parameter into 
  1075. loading line from CONFIG.SYS file to give a correct value.
  1076.   - "Parameter for allocated memory size is not correct: it must be bigger 
  1077. than 1024.": you have to modify the second parameter into loading line from 
  1078. CONFIG.SYS file to give a correct value.
  1079.   - "Memory could not be allocated: you need XMS or EMS memory.": driver did 
  1080. not find EMS or XMS memory. You have to add into your CONFIG.SYS file at least
  1081. the line that allows loading XMS memory.
  1082.  
  1083. If one of the three last messages is displayed, driver is not loaded. 
  1084.  
  1085.   b) Simulating an element:
  1086. Once the driver is loaded into memory, "-m" and "-i" options of savepart can 
  1087. be used (or associated actions appear into list of actions if you do not 
  1088. provide an action option). 
  1089. The first option ("savepart -m") or the choice "Simulate an element" into 
  1090. actions allow you to give the list of files to use in order to simulate 
  1091. element they contain. Execution is done in the same way than when testing a 
  1092. saving file (chapter 10). Once execution has correctly ended, you will be able
  1093. to use added drive as being the partition that is into saving file (as long as
  1094. no element is simulated, trying to access this drive generates an error). 
  1095. The second option ("savepart -i") or the choice "Get information from driver" 
  1096. into actions allow getting information from driver (drive simulated, sector 
  1097. size and files used if an element is simulated) and stopping simulating an 
  1098. element if there is one simulated. 
  1099. When simulating an element, more EMS/XMS memory can be needed by the driver. 
  1100. Unfortunately running savepart when only XMS memory is available, does that 
  1101. savepart uses the whole memory and it is not possible to allocate more memory 
  1102. for the driver. In this case you will certainly get a "You do not have enough 
  1103. EMS or XMS memory: <n> Kb free memory are needed." error. In this case you 
  1104. have to use ALLOCXMS.COM program with giving it <n> as parameter in order to 
  1105. memory to be allocated before running savepart, then you can run savepart 
  1106. again (example: ALLOCXMS.COM 1024 will allocate 1024 Kb memory). As this size 
  1107. depend on the partition simulated, it can not be be known (and so allocated) 
  1108. sooner. ALLOCXMS can display following messages: 
  1109.  
  1110.   - "Memory allocated": memory has been allocated and you can run savepart 
  1111. again.
  1112.   - "DrvPart driver could not be found": you have forgotten to load the driver
  1113. into your CONFIG.SYS file (note: in this case, options to manage drive 
  1114. simulation are not available into savepart).
  1115.   - "DrvPart driver into memory has not the same version as AllocXMS": 
  1116. versions of DRVPART.SYS and ALLOCXMS.COM are not the same. You must use 
  1117. programs having the same version (it is true also for savepart).
  1118.   - "An element is currently simulated": you have to stop simulating the 
  1119. element by using "Stop simulating element" button into the window giving 
  1120. information on driver into savepart.
  1121.   - "XMS memory driver could not be found": you do not have loaded a XMS 
  1122. driver into your CONFIG.SYS file, so you can not use XMS memory.
  1123.   - "Parameter is not correct": given parameter is not correct: it must be a 
  1124. positive integer.
  1125.   - "Such an amount of memory could not be allocated": XMS driver does not 
  1126. allow allocating such an amount of memory. If this size is not over memory 
  1127. available into your computer, using a more recent driver or not using EMS 
  1128. memory can solve this problem.
  1129.  
  1130.   c) Remarks:
  1131.  
  1132.   - This driver allows simulating only FAT elements or elements where all 
  1133. sectors were saved. In this last case, the fact that it is a FAT element is 
  1134. not checked, but DOS will certainly refuses to access it if it is not the 
  1135. case.
  1136.   - Files used for simulation must not be compressed.
  1137.   - All files used have to be always accessible to avoid an error (example: if
  1138. files are on several CDs, you must have either several CDs readers or copy 
  1139. file on your hard disk for them to be read simultaneously). First files will 
  1140. be used more often than last file, so put them on the faster support.
  1141.   - simulated element is set as read-only. So all try to write on them will 
  1142. generate an error. If ever you get an error like "Unable to write on drive 
  1143. <letter>" with letter equal to the simulated drive, you have to answer "Fail".
  1144.   - This driver can be run only in DOS mode. If ever Windows is started, it 
  1145. frees used memory and deactivate itself. Under Windows you will get a new 
  1146. drive, but you can not use it.
  1147.   - Using driver will slow your computer and use memory. So it is better to 
  1148. use it only when you need it (so modify your CONFIG.SYS file each time or use 
  1149. a specific floppy disk, with this second case being better).
  1150.   - Accessing simulated drive is slower than accessing others drives.
  1151.   - The driver will run correctly only for programs that use peripherics into 
  1152. a standard way. So it can be normal that some specific programs generate 
  1153. errors.
  1154.   - If a program terminates in an abnormal way, it can let driver in a bad 
  1155. state (trying to access simulated drive generates an error). In this case, you
  1156. just have to run and quit any program for the simulated drive to be accessible
  1157. as soon as the program has ended.
  1158.   - Driver can increase memory used depending on its need. If a program use 
  1159. the whole available memory (savepart is in this case when only XMS memory is 
  1160. present), you can get errors when accessing simulated drive. In this case you 
  1161. can try to increase the permanently used memory size with the second parameter
  1162. on the loading line of DRVPART.SYS into CONFIG.SYS file. Obviously this will 
  1163. be taken into account only at next boot of computer.
  1164.   - When using savepart access to simulated drive is not allowed.
  1165.   - If you want to simulate another element than the one simulated, you must 
  1166. not run savepart a first time to stop simulating element, then a second time 
  1167. to simulate a new one. You can directly choose to simulate the new one (it 
  1168. will stop simulating the first one). This implies that it is not possible to 
  1169. simulate several elements simultaneously (even with loading driver several 
  1170. times).
  1171.   - You can not run a program that is on the simulated drive. You have to copy
  1172. it on another drive before.
  1173.   - Driver, savepart and allocxms versions must be the same. This is why they 
  1174. have all the same version number. This version number is checked when these 
  1175. programs work together and they do not communicate if versions are not the 
  1176. same.
  1177.   - Because a new drive is created, the letter assigned to your CD reader can 
  1178. be modified.
  1179.   - DRVPART.SYS is not needed to run savepart. You must use it only if you 
  1180. want to use options to simulate an element.
  1181.  
  1182.  
  1183. 14- Options file contents 
  1184. -------------------------
  1185.  
  1186. Options file allows you to restore (or save again) element you have saved. In 
  1187. this case, with using savepart with the -f <options file name> option, 
  1188. parameters to save/restore element are read into file instead of being asked 
  1189. to you. Contents of this file can be not fully filled (in which case missing 
  1190. parameters will be asked), but in this case some rules described below must be
  1191. followed. 
  1192. Options file is a text file that gives options to use. Each option must be 
  1193. alone on a line. 
  1194. If the line begins with ";", its a comment line (it is not analysed). 
  1195. Option content can be defined with an environment variable. For this purpose 
  1196. the environment variable must be given between % (example: file=%CONF%.PAR, 
  1197. %CONF% will be replaced by the content of CONF environment variable). If 
  1198. environment variable does not exist an error will be issued. To be able to 
  1199. give the % character inside option content, you have to double it (example: 
  1200. file=WITH%%.PAR, used file name will be WITH%.PAR). 
  1201.  
  1202. Options are: 
  1203.  
  1204.   - mouse=[yes|no|poll]: method of use of mouse (same as -cm|-nm|-pm option on
  1205. command line).
  1206.   - check_drive=no: check that created/read file is not on saved/restored 
  1207. element is disabled (same as -ncd option on command line).
  1208.   - verify_disk_write=no: check that sectors are correctly written is disabled
  1209. (same as -nvd option on command line).
  1210.   - verify_file_write=no: check that files are correctly written is disabled 
  1211. (same as -nvf option on command line).
  1212.   - lang=[en|fr|fr_2]: language choice (same as -l option on command line).
  1213.   - user_interface=[console|text|text_bios]: user interface choice (same as 
  1214. -cui|-tui|-bui option on command line).
  1215.   - disk=<number>: gives the disk number to use. This number must be between 0
  1216. and number of disks - 1. When saving, this option takes place of first window.
  1217. When restoring, this option reduces the search of element to restore 
  1218. corresponding to those saved, to elements of the given disk (in other case, 
  1219. element is searched on all disks). This option can not be given if floppy= or 
  1220. device= option is given.
  1221.   - floppy=<number>: gives the floppy drive number to use. This number must be
  1222. between 0 and number of floppy drive - 1. When saving, this option takes place
  1223. of first window. When restoring, this option reduces the search of element to 
  1224. restore corresponding to those saved, to elements of the given floppy drive 
  1225. (in other case, element is searched on all floppy drives). This option can not
  1226. be given if disk= or device= option is given.
  1227.   - device=[A-Z]: gives the DOS device letter to use. When saving, this option
  1228. takes place of two first windows. When restoring, this option reduces the 
  1229. search of element to restore corresponding to those saved, to elements of the 
  1230. given DOS device (in other case, element is searched on all DOS devices). This
  1231. option can not be given if disk= or floppy= option is given.
  1232.   - main_part=<number>: gives the number of the extended partition to use. 
  1233. This number must be between 1 and 4. If element to save/restore is directly 
  1234. related to disk, this option must not be given. For this option to be used, 
  1235. "disk=" option must be given.
  1236.   - ext_part=<number>: gives the number of the extended partition to use. This
  1237. number must be between 1 and the number of extended partition corresponding to
  1238. main partition. For this option to be used, "main_part=" option must be given.
  1239. You do not have to give this option if you want to save a main partition. 
  1240.     "main_part=" and "ext_part=" options are used in place of second window 
  1241. into saving, and "disk=", "main_part=" and "ext_part=" options are used in 
  1242. place of second window into restoring.
  1243.   - def_level=<number>: gives the deflating level to use. This number must be 
  1244. between 0 and 9. When saving, this option is used in place of third window. 
  1245. When restoring, this option is not used (so can be not given). If this option 
  1246. is not given and a file name is given (see "file=" option below), deflating 
  1247. level used is level 0 (no deflating).
  1248.   - file=<file name>: gives the file to use to save/restore element. This 
  1249. option can be given several times in case saving/restoring need several files.
  1250. In this case, options must be given in order you want files to be used.
  1251.   - max_size=<number> [kb|Mb]: gives the maximum size you want a file to do. 
  1252. If kb|Mb is not given, size is in Mb. If size is in kb, it must be between 1 
  1253. and 9999 kb, if it is in Mb it must be between 1 and 2047 Mb. When execution 
  1254. is done, this size will be limited to the free space on disk where to create 
  1255. the file. This option can be given several times if saving/restoring need 
  1256. several files. In this case this option must be given in the same order as 
  1257. file names are given. If this option is given less time than number of file 
  1258. names, the last option will be used for all remaining files. If this option is
  1259. given more times than number of file names, remaining options will not be 
  1260. used. If this option is not given and some file names are given, maximum size 
  1261. of 2047 Mb is used. When restoring this option is not used (so can be not 
  1262. given).
  1263.   - 
  1264. filesystem=[no|fat12|fat16|fat32|ext2|ntfs|MBR|firstsect|parttable|fat12mem|fat16mem|fat32mem]:
  1265. gives the file system type to use when saving. If this parameter is equal to 
  1266. "no", all sectors are saved without considering file system that is on the 
  1267. partition. If this parameter is equal to one of the others possibilities, 
  1268. program checks that partition to save contains a file system of the asked 
  1269. type. If it is the case, only occupied sectors will be saved. If it is not the
  1270. case, an error is displayed. 
  1271.     fat12mem, fat16mem and fat32mem options allow to save only occupied 
  1272. sectors and to create saving file on saved partition. 
  1273.     When restoring, this option is not used (it is the value defined into 
  1274. saved file that is used).
  1275.   - quit=[yes|no|nobadsector]: this options permits to exit program 
  1276. automatically. If it is equal to "yes", program exits at end of 
  1277. saving/restoring/copying (be aware that in the case of saving, if one of the 
  1278. option used from option file has been modified, window asking if you want to 
  1279. create option file will still appear). It this option is equal to 
  1280. "nobadsector", program will exit only if no bad sector has been found (in 
  1281. other case, user can read errors list on screen, then click "Ok" button). If 
  1282. this option is equal to "no" or is not given, user has to click "Ok" button to
  1283. exit.
  1284.   - reboot=[yes|no]: this option allows rebooting computer automatically at 
  1285. end of program execution. It is active only when saving or restoring a 
  1286. partition (copying does not take an option file and it is not useful to reboot
  1287. computer into others cases). If "quit" option is equal to "no" or 
  1288. "nobadsector" with some bad sectors or is not given, program will reboot only 
  1289. once the user has clicked on "Ok" button. If "quit" option is equal to "yes" 
  1290. or "nobadsector" without any bad sector, reboot will be done at once.
  1291.   - automatic_naming=[yes|no]: this options allows using automatic naming. If 
  1292. no file= option is given, this will only check the automatic naming checkbox 
  1293. when asking for first file name. If one or several file= options are given, 
  1294. all these options will be first used and if it is needed to have more files, 
  1295. program will use last file name with changing its extension with file number 
  1296. following rules described into chapter 6.d (there was no check if file already
  1297. exists or not).
  1298.   - windows_disk=<number>: gives the disk number where Windows is installed. 
  1299. This option is equivalent to the "disk=" one but is used in case of update of 
  1300. Windows 2000/XP registry to give disk number where Windows is installed (see 
  1301. chapter 11.a).
  1302.   - window_main_part=<number>: gives the main partition number where Windows 
  1303. is installed. This option is equivalent to the "main_part=" one but is used in
  1304. case of update of Windows 2000/XP registry to give main partition number where
  1305. Windows is installed (see chapter 11.b).
  1306.   - window_ext_part=<number>: gives the extended partition number where 
  1307. Windows is installed. This option is equivalent to the "ext_part=" one but is 
  1308. used in case of update of Windows 2000/XP registry to give extended partition 
  1309. number where Windows is installed (see chapter 11.b).
  1310.   - window_device=[A-Z]: gives the DOS device letter where Windows is 
  1311. installed. This option is equivalent to the "device=" one but is used in case 
  1312. of update of Windows 2000/XP registry to give DOS device where Windows is 
  1313. installed (see chapter 11.b).
  1314.   - window_dir=<string>: gives the directory where Windows is installed (see 
  1315. chapter 11.c).
  1316.   - part_letter=[A-Z]: gives drive letter that should be modified into 
  1317. registry for chosen partition (see chapter 11.f).
  1318.  
  1319. Remarks: 
  1320. --------
  1321.  
  1322.   - when using batch mode, no confirm is asked when a file must be erased, 
  1323. when element is restored, when registry or BOOTSECT.DOS file is modified.
  1324.   - if you do not give enough file name (by example, you give only one file 
  1325. name when restoring, when two files have been creating when saving), or a file
  1326. is wrong (by example, you give file in wrong order or file name is wrong), 
  1327. missing or incorrect file names will be asked as in normal mode.
  1328.   - if an option is not valid, program ends. To check your option file you can
  1329. use savepart with "-t" option.
  1330.   - when restoring, if several files are needed and are stored on removable 
  1331. media (and the program is able to detect this), program ask to change media in
  1332. place of displaying an error and asking for next filename.
  1333.  
  1334. Examples: 
  1335. ---------
  1336.  
  1337. If we use partitioning given into saving a partition samples, and look at a 
  1338. batch file created when saving partition containing D: drive, we will have 
  1339. (considering that all sectors were saved and two files are needed): 
  1340. ;------------------------------- 
  1341. ; Parameters for D: drive 
  1342.  
  1343. ; On first disk 
  1344. disk=0 
  1345.  
  1346. ; Main partition 1 
  1347. main_part=1 
  1348.  
  1349. ; No deflating 
  1350. ; (remark: in this case this option can be not given) 
  1351. def_level=0 
  1352.  
  1353. ; Files: 
  1354. file=c:\driv_d_1.par 
  1355. file=c:\driv_d_2.par 
  1356.  
  1357. ; Same size for all files 
  1358. ; (remark: in this case the second line can be not given) 
  1359. max_size=620 
  1360. max_size=620 
  1361.  
  1362. ; All sectors are saved 
  1363. filesystem=no 
  1364.  
  1365. ; End of file 
  1366. ;------------------------------- 
  1367. If you call this file drive_d.cfg, you will have to enter "savepart -s -f 
  1368. drive_d.cfg" to save the partition or "savepart -r -f drive_d.cfg" to restore 
  1369. it. Your are not obliged to give the -s/-r flag in which case what you want to
  1370. do will be asked to you, then option file will be taken into account. 
  1371.  
  1372. File below will permit you to save/restore Linux partition (all sectors of 
  1373. this partition): 
  1374. ;----------------------------------- 
  1375. ; Parameters for Linux partition 
  1376.  
  1377. ; On first disk 
  1378. disk=0 
  1379.  
  1380. ; Main partition number 3: 
  1381. main_part=3 
  1382.  
  1383. ; Standard deflating: 
  1384. def_level=6 
  1385.  
  1386. ; File: 
  1387. file=c:\linux.par 
  1388. max_size=2047 
  1389.  
  1390. ; All sectors are saved 
  1391. filesystem=no 
  1392.  
  1393. ; End of file 
  1394. ;------------------------------- 
  1395. If you change filesystem parameter from "no" to "ext2" in above file, only 
  1396. occupied sectors of partition will be saved. 
  1397.  
  1398. If you have two disks with the first one that has a partitioning format that 
  1399. is not recognised by savepart, you can use following file to force program to 
  1400. only use the second hard drive: 
  1401. ;------------------------------- 
  1402. ; Partitioning format of the first disk not recognised 
  1403. ; => we will use only the second one 
  1404.  
  1405. disk=1 
  1406.  
  1407. ; End of file 
  1408. ;------------------------------- 
  1409.  
  1410. To modify registry automatically, you have to give all options to define 
  1411. element to modify and element where Windows is installed. As an example: 
  1412. ;----------------------------------- 
  1413. ; Modification of registry for logical partition on second disk with 
  1414. ; having Windows installed on first partition of first disk. 
  1415.  
  1416. ; Parameters for Windows installation 
  1417. windows_disk=0 
  1418. windows_main_part=1 
  1419. windows_dir=windows 
  1420.  
  1421. ; Parameters for partition definition to modify into registry 
  1422. disk=1 
  1423. main_part=2 
  1424. ext_part=1 
  1425. part_letter=G 
  1426.  
  1427. ; End of file 
  1428. ;----------------------------------- 
  1429.  
  1430.  
  1431. 15- About what can be saved 
  1432. ---------------------------
  1433.  
  1434. This chapter describes some points specific to each type of element that can 
  1435. be saved. It describes in particular restrictions that are checked by program 
  1436. when restoring an element. 
  1437.  
  1438.   a) Whole disk: 
  1439. This is about saving/restoring whole disk without taking into account its 
  1440. organization. 
  1441.  
  1442. When saving you should not create the saving file on one of the partition of 
  1443. the disk, else you can get incoherency when restoring. 
  1444.  
  1445. When restoring you should not use files that are on this disk as it is fully 
  1446. written and so files would be erased before they were read (so restoring will 
  1447. end with an error and files will be lost). Restoring is only available on a 
  1448. disk with a similar physical definition. For this purpose it must have the 
  1449. same access type, the same number of heads, of sector per track and have 
  1450. sectors that have the same size. It must equally have the same number or more 
  1451. cylinders (so the disk will have the same size or be bigger). In the case it 
  1452. has more cylinders, last cylinders will be not allocated (so be left empty) 
  1453. and you will have to create a new partition or increase the last one to use 
  1454. them. 
  1455.  
  1456. If disk size seems to be incorrect (by example it is displayed of 8Gb when the
  1457. disk does 20 Gb), you should not save this disk because saving will not be 
  1458. complete (in the example, the last 12 Gb will not be saved). This comes from a
  1459. bad detection of the disk (by example on the way to access it). The use of a 
  1460. disk manager program can solve this problem. 
  1461.  
  1462.   b) The Master Boot Record (MBR): 
  1463. This sector is the first one of the disk. It contains: 
  1464.  
  1465.   - boot code used when computer is started.
  1466.   - main partitions declaration.
  1467.  
  1468. When saving it, this sector is fully saved, but when restoring only part 
  1469. corresponding to boot code is restored. Part corresponding to partition table 
  1470. is not modified else you will loose all partitions of disk. Disk 
  1471. identification used by Windows NT/2000 and XP to distinguish disk is restored 
  1472. also. 
  1473.  
  1474. When restoring, the only constraint on destination disk is that it must have 
  1475. the same sector size. 
  1476.  
  1477. You can need to save the Master Boot Record to restore it on another disk or 
  1478. in case of a boot virus. This is the same as doing "fdisk /mbr" if you have a 
  1479. boot sector written by Windows 9x/Me. This allows also to restore a boot 
  1480. loader in the case you install an operating system that modify boot sector 
  1481. without care. 
  1482.  
  1483. Boot code is restored like it is, so if it contains some code linked to disk 
  1484. format, this is not updated event if this sector is restored on another disk. 
  1485.  
  1486. You can not save the MBR if it is considered has not valid (in this case this 
  1487. choice will not be displayed). 
  1488.  
  1489.   c) First sectors of disk: 
  1490. This is all sectors that are before the first partition. This includes Master 
  1491. Boot Record. This last one is restored as in the previous case (only boot code
  1492. is restored). 
  1493.  
  1494. When restoring constraints on destination disk is that it must have the same 
  1495. sector size and have a valid partition table. If number of sectors before 
  1496. first partition is not the same between saved and restored disk, only common 
  1497. part (so the minimum number of sectors) will be restored. 
  1498.  
  1499. You can need to save all sectors before first partition in place of only MBR 
  1500. in the case you have a boot loader that uses these sectors to store its 
  1501. program. It this is restored onto another disk than origine one or on a disk 
  1502. with different partitions, restored sectors will not be modified to take into 
  1503. account this new definition. 
  1504.  
  1505. You will not see this option if MBR or partition table is not valid. 
  1506.  
  1507.   d) Partition table: 
  1508. This is all sectors that describe partitions table. They include MBR and all 
  1509. sectors that describe extended partition. 
  1510.  
  1511. When saving sectors are fully saved, but when restoring only part 
  1512. corresponding to partition table is restored (so boot code is not modified). 
  1513. Constraints on destination disk are the same than when saving/restoring whole 
  1514. disk. 
  1515.  
  1516. When restoring partition table, you will loose the whole contents of the disk;
  1517. not because it is written except sectors of partition table, but because the 
  1518. way it is organized is modified. Also it is better that the saving file is not
  1519. on destination disk because the risk that it can be erased exists (it is low 
  1520. because file should be too big to be stored into memory and that one of the 
  1521. sector of partition table is one where the file is stored). 
  1522.  
  1523.   e) Partitions (all sectors): 
  1524. In this case all sectors of a partition are saved without taking into account 
  1525. if they are occupied or not. 
  1526.  
  1527. When saving be aware to not create saving file on saved partition (for same 
  1528. reasons as when saving whole disk). This is equally true when saving only 
  1529. occupied sectors except when choosing to save a partition on itself. 
  1530.  
  1531. When restoring you should not use files that are on the restored partition 
  1532. (for same reasons as when restoring whole disk). This is equally true when 
  1533. restoring only occupied sectors. Restoring will be available only on a 
  1534. partition that is on a disk that has the same constraints as when restoring 
  1535. whole disk. Moreover partition must be on the same place on disk (it must 
  1536. begin and end at the same place than saved one). To end, partition type has to
  1537. be compatible with type of saved partition. For this, here is the array giving
  1538. compatibility between partition types: 
  1539.  
  1540.                   +---------+--------+----------------------+
  1541.                   |  Type   | Number | Designation          |
  1542.                   +---------+--------+----------------------+
  1543.                   |         |   0x01 | DOS FAT-12           |
  1544.                   | FAT 12  |   0x11 | DOS FAT-12 hidden    |
  1545.                   |         |   0xc1 | DR-DOS FAT-12        |
  1546.                   +---------+--------+----------------------+
  1547.                   |         |   0x04 | DOS FAT-16 < 32Mo    |
  1548.                   |         |   0x06 | DOS FAT-16 >= 32Mo   |
  1549.                   | FAT 16  |   0x14 | FAT-16 < 32Mo hidden |
  1550.                   |         |   0x16 | DOS FAT-16 hidden    |
  1551.                   |         |   0xc4 | DR-DOS FAT-16        |
  1552.                   |         |   0xc6 | DR-DOS,NT            |
  1553.                   +---------+--------+----------------------+
  1554.                   | VFAT 16 |   0x0e | Win95 VFAT-16        |
  1555.                   |         |   0x1e | Win95 VFAT-16 hidden |
  1556.                   +---------+--------+----------------------+
  1557.                   |         |   0x0b | Win95 FAT-32 (b)     |
  1558.                   | FAT 32  |   0x0c | Win95 FAT-32 (c)     |
  1559.                   |         |   0x1b | W95 FAT32 hidden(b)  |
  1560.                   |         |   0x1c | W95 FAT32 hidden(c)  |
  1561.                   +---------+--------+----------------------+
  1562.                   | NTFS    |   0x07 | QNX,OS/2,NT,Unix     |
  1563.                   |         |   0x17 | OS/2,NT              |
  1564.                   +---------+--------+----------------------+
  1565.                   | ext2    |   0x83 | Linux ext2fs/xiafs   |
  1566.                   +---------+--------+----------------------+
  1567. So if you save a partition of type Win95 FAT32 (b), you can restore it on a 
  1568. Win95 FAT32 (c) partition (theoretically, difference between the 2 is hard 
  1569. disk access (CHS or extended), but Windows seems not to check partition type 
  1570. and check access type when booting). Please note that partition type is not 
  1571. modified into partitions table (so if you restore a Win95 FAT32 (b) partition 
  1572. on a Win95 FAT32 (c) partition, this last one will still be a Win95 FAT32 (c) 
  1573. partition into partitions table). 
  1574.  
  1575. Saving all sectors of a partition can be usefull in case of a partition for 
  1576. which saving only occupied sectors is not available or in the case where 
  1577. filesystem is too much damaged for saving only occupied sectors to work or if 
  1578. you do not have enough memory. 
  1579.  
  1580.   f) Partitions (only occupied sectors): 
  1581. This part describes how works saving only occupied sectors for partitions that
  1582. are known by this program. Following parts will describe some specific things 
  1583. for each partition type (FAT, ext2fs, NTFS). 
  1584.  
  1585. When saving/restoring occupied sectors of a partition, it is necessary to know
  1586. how data are stored on it to know if a sector is occupied or not. It is for 
  1587. this reason that this possibility is not applied to all file system, but only 
  1588. for those I found documentation and that I have to perform tests. For those 
  1589. file systems, some checks are done to verify that it will be correctly 
  1590. recognised (if it is not, the window asking you if you want to save only 
  1591. occupied sectors will not be displayed). 
  1592.  
  1593. Saving/restoring of occupied sectors allows saving space (saving file is 
  1594. smaller), to save time (less data are read) and to do restore on a partition 
  1595. with a different size or that is on a hard disk different from those where was
  1596. source partition or at a different place. Remaining constraints are that disk 
  1597. must have the same sector size as origin one and partition types must be 
  1598. compatible. Partition needs also to respect some minimal and maximal sizes 
  1599. (they are described below for each filesystem type). Remarks on where 
  1600. created/read file are are the same as for a partition where all sectors are 
  1601. saved. 
  1602.  
  1603. Saving/restoring of occupied sectors keeps data sectors structure as it was 
  1604. defined when saving. If the partition is restored on a partition with a size 
  1605. different from original one, file system sectors can be modified to take into 
  1606. account this size change. 
  1607.  
  1608. Example: 
  1609. --------
  1610. With a FAT partition, consider there was following structure (each letter is a
  1611. sector with its content, number of sectors given is not representative of a 
  1612. true FAT structure): 
  1613.  
  1614.   RRRRRRFFFF    R: reserved sectors (boot sector and others) 
  1615.   FFFFDDDD..    F: FAT sectors (sectors that allow to know if clusters, 
  1616.   DDDDDDDD..       that are groups of sectors, are occupied) 
  1617.   ........DD    D: data sectors 
  1618.   DDDDDDDDDD    .: empty sectors 
  1619.   DD....DDDD 
  1620.  
  1621. This partition is 60 sectors long. If you want to restore it on a partition 
  1622. that does 120 sectors, you will get following result: 
  1623.  
  1624.   RRRRRRFFFF 
  1625.   FFFFFFFFFF 
  1626.   FFDDDD..DD 
  1627.   DDDDDD.... 
  1628.   ......DDDD 
  1629.   DDDDDDDDDD 
  1630.   ....DDDD.. 
  1631.   .......... 
  1632.   .......... 
  1633.   .......... 
  1634.   .......... 
  1635.   .......... 
  1636.  
  1637. Number of reserved sectors has not been modified, number of FAT sectors has 
  1638. grown because there was more accessible data sectors. Number of data sectors 
  1639. has grown, but their organisation has not been modified (only empty sectors 
  1640. have been added at end). 
  1641. In this example, it is not possible to restore this partition on a smaller 
  1642. partition because last sector of partition is occupied. To avoid this problem 
  1643. you have to use a defragmenter before saving in order to get following 
  1644. structure: 
  1645.  
  1646.   RRRRRRFFFF 
  1647.   FFFFDDDDDD 
  1648.   DDDDDDDDDD 
  1649.   DDDDDDDDDD 
  1650.   DDDD...... 
  1651.   .......... 
  1652.  
  1653. In this case, partition can be restored on a partition with 44 sectors 
  1654. (certainly less, as number of data sectors is reduced and so number of FAT 
  1655. sector will be reduced, and a partition with 42 sectors can certainly be 
  1656. used). 
  1657.  
  1658. To know minimum and maximum partition size you can use when restoring a 
  1659. partition where only occupied sectors were saved, you can: 
  1660.  
  1661.   - either creates the batch file, in which case these sizes are written at 
  1662. begin of file into description.
  1663.   - or run savepart -r with choosing the saved file. When the window where you
  1664. have to choose the partition to restore is displayed, it will contain a line 
  1665. with minimum and maximum sizes allowed for partition. Then you can cancel 
  1666. restoring to avoid doing it uselessly.
  1667.  
  1668.   g) FAT (12, 16 and 32) partitions (DOS/Windows): 
  1669. All FAT12 and FAT16 partitions are recognised. FAT32 partitions are recognised
  1670. only for version 0 of this file system (I did not know other version). FAT 
  1671. partitions group data sectors into groups called clusters. When restoring this
  1672. type of partition, cluster size is not modified and FAT type is not modified. 
  1673. Because of FAT structure, partitions of this type have to respect some size 
  1674. constraints that are summarised into following table: 
  1675. +----------------+-----------------+-----------------+-----------------+
  1676. | Clusters size  |    512 bytes    |    1 Kbytes      |   2 Kbytes     |
  1677. | Partition size | Min.   | Max.   | Min.   | Max.   | Min.   | Max.   |
  1678. +----------------+--------+--------+--------+--------+--------+--------+
  1679. | FAT12          |   2 Kb |   2 Mb |   4 Kb |   4 Mb |   8 Kb |   8 Mb |
  1680. | FAT16          |   2 Mb |  32 Mb |   4 Mb |  64 Mb |   8 Mb | 128 Mb |
  1681. | FAT32          |  32 Mb | 128 Gb |  64 Mb | 256 Gb | 128 Mb | 512 Gb |
  1682. +----------------+--------+--------+--------+--------+--------+--------+
  1683.  
  1684. +----------------+-----------------+-----------------+-----------------+
  1685. | Clusters size  |    4 Kbytes     |    8 Kbytes     |    16 Kbytes    |
  1686. | Partition size | Min.   | Max.   | Min.   | Max.   | Min.   | Max.   |
  1687. +----------------+--------+--------+--------+--------+--------+--------+
  1688. | FAT12          |  16 Kb |  16 Mb |  32 Kb |  32 Mb |  64 Kb |  64 Mb |
  1689. | FAT16          |  16 Mb | 256 Mb |  32 Mb | 512 Mb |  64 Mb |   1 Gb |
  1690. | FAT32          | 256 Mb |   1 Tb | 512 Mb |   2 Tb |   1 Tb |   4 Tb |
  1691. +----------------+--------+--------+--------+--------+--------+--------+
  1692.  
  1693. +----------------+-----------------+
  1694. | Clusters size  |    32 Kbytes    |
  1695. | Partition size | Min.   | Max.   |
  1696. +----------------+--------+--------+
  1697. | FAT12          | 128 Kb | 128 Mb |
  1698. | FAT16          | 128 Mb |   2 Gb |
  1699. | FAT32          |   2 Tb |   8 Tb |
  1700. +----------------+--------+--------+
  1701. So with this table, you see it is not possible to define a FAT16 partition 
  1702. with less than 16 Mb and more than 256 Mb if its cluster size is of 4 Kb. When
  1703. restoring, only partitions that respect these constraints are listed into 
  1704. compatible partitions. 
  1705.  
  1706. Remarks: 
  1707. --------
  1708.  
  1709.   - as it has been said before, to restore a partition on a smaller partition,
  1710. last sectors of partition must not be occupied. For this purpose you have to 
  1711. use a defragmenter in full defragmentation mode. You have to check that the 
  1712. defragmenter put all files at begin of partition (some files are sometimes let
  1713. at end like by example the image.idx file created by Norton Image. It can be 
  1714. erased before doing save (be aware to remove system and hidden attributes), 
  1715. then created again once the saving is done).
  1716.   - if you restore the partition containing C: drive on a different partition,
  1717. it can be needed to activate the partition if it is not already to set it 
  1718. bootable (with FDISK, choose "Activate partition" option). You can also have 
  1719. to update MBR (either with copying original MBR or with using "fdisk /mbr"). 
  1720. If this partition is a partition used into Windows 2000/XP multiboot (without 
  1721. being the XP partition), you have also to update the BOOTSECT.DOS file. It can
  1722. be also needed to use a floppy boot disk with SYS.COM on it, to install boot 
  1723. on partition (with doing a "sys c:" from floppy disk).
  1724.   - if you restore a partition on a different partition, references into 
  1725. Windows registry that are to saved partition will be wrong. In case of Windows
  1726. 2000/XP, you can update registry with keeping the same drive letter. For 
  1727. others Windows version, this can not be done.
  1728.   - if bad sectors are found into FAT (or boot sector copy for FAT32) when 
  1729. saving, their content is replaced by the content of their copy into the saving
  1730. file to avoid problems when restoring this partition if it is done on one that
  1731. has not these bad sectors.
  1732.  
  1733.   h) Ext2fs/ext3fs partitions (Linux): 
  1734. Ext2fs/ext3fs partitions that are recognised are 0 and 1 version. 
  1735. In a similar way than for FAT file system, ext2 file system groups data 
  1736. sectors into groups called blocs. As for FAT, bloc size can not be modified 
  1737. when restoring a partition. Switch this blocs size, you will have some size 
  1738. constraints. 
  1739. These size constraints come from a different need than for FAT partition. They
  1740. define only a maximum partition size switch that size of the saved partition 
  1741. (there was no minimum size). 
  1742.  
  1743.            +----------------------+----------+----------+----------+
  1744.            | Blocs size           | 1 Kbytes | 2 Kbytes | 4 Kbytes |
  1745.            +----------------------+----------+----------+----------+
  1746.            |                      |   256 Mb |     2 Gb |    16 Gb |
  1747.            |                      |   512 Mb |     4 Gb |    32 Gb |
  1748.            |  Maximum partition   |     1 Gb |     8 Gb |    64 Gb |
  1749.            |                      |     2 Gb |    16 Gb |   128 Gb |
  1750.            |                      |     4 Gb |    32 Gb |   256 Gb |
  1751.            |        size          |     8 Gb |    64 Gb |   512 Gb |
  1752.            |                      |    16 Gb |   128 Gb |     1 Tb |
  1753.            |                      |    32 Gb |   256 Gb |     2 Tb |
  1754.            |                      |    64 Gb |   512 Gb |     4 Tb |
  1755.            +----------------------+----------+----------+----------+
  1756. By example, if you have a 3 Gb partition with 2 Kb blocs, you would not be 
  1757. authorised to restore it on a partition that does more than 4 Gb (but you can 
  1758. restore it on a partition having a size between 0 and 4 Gb, lower limit will 
  1759. be set by the number of last used bloc). 
  1760.  
  1761. Remarks: 
  1762. --------
  1763.  
  1764.   - I did never try a Linux defragmenter and I am not sure it will do a full 
  1765. defragmentation. Because of the way file are managed, it is highly probable 
  1766. that only file will be defragmented (they are moved such as all their data are
  1767. stored on following sectors, but are not put at begin of partition). So it is 
  1768. very difficult to get a Linux partition with their last sectors unoccupied (so
  1769. it will be difficult to restore a Linux partition on a smaller partition).
  1770.   - if you restore the root partition ("/") on a different partition (or if 
  1771. you have compiled a new kernel between saving and restoring), you will need a 
  1772. rescue disk to install your boot loader. Once the rescue disk has booted, 
  1773. create /mnt/disk directory if it does not exist, mount the partition with 
  1774. "mount -t ext2 /dev/<partition> /mnt/disk", then change your boot loader file 
  1775. (/mnt/disk/etc/lilo.conf by example) and install it back with "chroot 
  1776. /mnt/disk <boot loader command>" (<boot load command> = lilo by example).
  1777.   - if you restore a partition on a different one, do not forget to modify 
  1778. your /etc/fstab file (it is the file that gives partitions with their mount 
  1779. directory) to take into account this change.
  1780.   - Ext3fs partitions are recognised as ext2fs partitions if journal is on the
  1781. same partition. If journal is on a self contained partition, base partition 
  1782. can be saved as an ext2fs one, partition containing journal must be saved with
  1783. all sectors (it is not important as journal partition is not very big and is 
  1784. swiftly full). Moreover in this last case, you must maintain coherency between
  1785. the two partitions.
  1786.  
  1787.   i) NTFS partitions:
  1788. NTFS partitions are recognised for 1.1, 1.2, 2, 3.0 and 3.1 versions (this 
  1789. number is not NT version but filesystem version (1.1, 1.2, 2 <=> NT, 3.0 <=> 
  1790. Windows 2000, 3.1 <=> Windows XP)). As Microsoft did never release a NTFS 
  1791. specification, this filesystem is not fully known and there still was some 
  1792. unknown part. Nevertheless, part concerning sector use is known and so can be 
  1793. used. But there was some feature of NTFS that I did not accept (it is the case
  1794. of partitions that have heavy fragmented filesystem). 
  1795. On the contrary of FAT and ext2 partitions, there was no size constraint: only
  1796. size limit is linked to last allocated sector for lower limit and for upper 
  1797. limit to limit of filesystem or to a too much fragmentation. So it is not 
  1798. possible to give a size constraint as in others cases. 
  1799.  
  1800. Remarks: 
  1801. --------
  1802.  
  1803.   - as for Linux, NTFS defragmenter does certainly not group occupied sectors 
  1804. at beginning of partition. So it can be difficult to restore/copy a partition 
  1805. on a smaller one.
  1806.   - in some cases, program can return that it can not restore the partition on
  1807. another one because of size problem. In this case, you have to try to restore 
  1808. it on a smaller partition (if it can be done) or bigger. This case will be 
  1809. exceptional and due to some full and heavy fragmented partition.
  1810.   - saving/restoring a NTFS partition needs more memory than for others cases.
  1811. If you have the "not enough memory" error and if you have more than 32 Mb 
  1812. memory and use EMM386, you can get more memory with disabling EMM386 (it 
  1813. limits memory size to 32 Mb). To perform this, you have to add a "rem " at 
  1814. beginning of line concerning EMM386 info C:\CONFIG.SYS file (or A:\CONFIG.SYS 
  1815. file if you use a floppy disk to boot), then restart your computer. Once 
  1816. saving/restoring is done, you can remove the "rem " such as EMM386 will be 
  1817. activated again at next boot.
  1818.   - if you restore a partition on a different partition, references into 
  1819. registry that are to saved partition will be wrong. In case of Windows 
  1820. 2000/XP, you can update registry with keeping the same drive letter. For 
  1821. others Windows version, this can not be done.
  1822.   - if you save your system partition, then restore it into another partition,
  1823. you have to update the registry. You can also need to update your boot for 
  1824. this new location to be taken into account (as for the BOOT.INI file). For 
  1825. Windows XP, you have to boot with Windows XP CDROM or the 6 floppy disk 
  1826. downloadable on Microsoft website and choose repair option. Once you have the 
  1827. prompt, tools to be used are fixmbr, fixboot and bootcfg. The first one is to 
  1828. update the first sector of the disk (in case this one was never used as a 
  1829. system disk), the second one is to update boot sector of partition (this is 
  1830. thorically not needed), the last one is to configure your boot options 
  1831. (BOOT.INI file). You can type "help <command>" to get more information on 
  1832. these commands. But despite all this, because of protection mechanism that are
  1833. set and of lack of knowledge about this system, it can not work (but only in 
  1834. the case of a restoring on another disk, in case of a restoring on a previous 
  1835. version, there will be no problem). A last try that could be done in this case
  1836. is to download the "sysprep" utility on Microsoft website and use it before 
  1837. doing the save.
  1838.  
  1839.   j) Floppy disks:
  1840. 360 Kb, 720 Kb, 1.2 Mb, 1.44 Mb and 2.88 Mb floppy disks can be saved. But 
  1841. only floppy disks that are correctly formatted and have 512 bytes sectors can 
  1842. be saved. 
  1843. Floppy disk size can not be known (knowing its type 5"1/4 or 3"1/2 is 
  1844. possible, but for a given type, size can not be known). So program searches 
  1845. the last sector of the disk to get its size. In case this last sector is 
  1846. damaged, program will be wrong and whole floppy disk will not be saved/ 
  1847. restored. In this case it is better that you use saving using DOS devices. To 
  1848. know which size program has found, you can use window asking you if you want 
  1849. to save all sectors or occupied ones only (if it is displayed) or remaining 
  1850. size when window asking you backup filename is displayed. 
  1851. In case you save all sectors, same remarks than for saving a whole partition 
  1852. can be applied, in case you save only occupied sectors, you have to read 
  1853. previous chapters following the filesystem. 
  1854. If you restore a floppy disk for which you have saved only occupied sectors, 
  1855. on a floppy disk with a different size, it will work. But this floppy disk 
  1856. will no more have a standard format so it can mistake some programs. 
  1857. After you have restored a floppy disk, you have to eject it then enter it back
  1858. into drive such as DOS can take changes into account. Without doing this, you 
  1859. can get incoherence on disk. 
  1860.  
  1861.   k) DOS devices:
  1862. This method allows you to save all devices that DOS accesses using sector 
  1863. notion and that have a FAT filesystem. By example, it is not the case for CD 
  1864. or network mapped drive, but it is the case for big floppy disk as the Zip 
  1865. one. 
  1866. This obviously allows accessing to FAT partitions of hard disk or disk floppy,
  1867. but for both cases it is better to use direct access as described into above 
  1868. chapters. The only case where this is wrong is in case the floppy disk size is
  1869. badly recognized. 
  1870. Device to save/restore must be correctly formatted for it to be correctly 
  1871. recognized. 
  1872. Same remarks as for saving floppy disk can be applied in this case. 
  1873.  
  1874.  
  1875. 16- What is not supported 
  1876. -------------------------
  1877.  
  1878. Following elements are not supported: 
  1879.  
  1880.   - partitions for OSes that does no follow partition format as it is 
  1881. described (notably Solaris x86).
  1882.   - disk manager programs (do not confuse with boot manager programs that are 
  1883. supported). These programs allow to access to more than 8 Gb disks with 
  1884. standard mode (if you use one, there are some probability that you know it). 
  1885. If you see only one partition when you know that there were several, such a 
  1886. program could be installed. 
  1887.     Francisco Miranda has reported to me that he has successfully runned 
  1888. Partition Saving with Samsung disk manager. Thanks to him to have made the try
  1889. and to have returned this information to me back. Nevertheless this is only 
  1890. valid for this disk manager, so I let this warning for others disk manager.
  1891.   - extended partition with OS2 can not be all detected: into extended 
  1892. partition chain, the most common is to use only two partitions by node (the 
  1893. two others having wrong information), but OS2 seems to use the four 
  1894. partitions.
  1895.  
  1896.  
  1897. 17- What can not be tested 
  1898. --------------------------
  1899.  
  1900. Following elements can not be tested: 
  1901.  
  1902.   - use of disk with a sector size not equal to 512 bytes.
  1903.   - partitions for others OSes than DOS, Windows (9x, XP) and Linux.
  1904.   - creating saving file on partition which is saved, unless using dedicated 
  1905. option.
  1906.   - updating of registry in case of Windows 200 registry.
  1907.  
  1908. If somebody use this program with one of above element, I will be pleased to 
  1909. know how it works (and trouble encountered if there were). For these persons, 
  1910. I want to indicate that: 
  1911.  
  1912.   - savepart.exe -s only read the disk physically (writing is done into file 
  1913. with standard DOS functions).
  1914.   - savepart.exe when used with "-t" option does not write anything on disk.
  1915.  
  1916.  
  1917. 18- Acknowledgements 
  1918. --------------------
  1919.  
  1920.   - my father for asking me such a program (without what it would be never 
  1921. written), to have read this document (the French version, all mistakes into 
  1922. English one is due to my poor English) and to have tested this program.
  1923.  
  1924.   - DJ Delorie for DJGPP environment (http://www.delorie.com/djgpp). This 
  1925. includes also everybody who has helped him.
  1926.  
  1927.   - Jean-Loup Gailly and Mark Adler for zlib compression library (
  1928. http://www.cdrom.com/pub/infozip/zlib/).
  1929.  
  1930.   - Ralf Brown all the documentation that he has gathered on interruptions (
  1931. http://www.pobox.com/~ralf).
  1932.  
  1933.   - Simon P. Bullen for fortify (a library to check memory use).
  1934.  
  1935.   - Chris Lattner for its Website "The Operating System Resource Center" where
  1936. you can find a lot of information on hardware and software ( 
  1937. http://www.nondot.org/sabre/os/articles).
  1938.  
  1939.   - RĂ©gis Duchesne and Richard Russon (and all persons that help them) for all
  1940. documents on NTFS (http://linux-ntfs.sourceforge.net/ntfs/index.html).
  1941.  
  1942.   - Markus Oberhumer and Laszlo Molnar for the executable packer UPX (
  1943. http://upx.sourceforge.net), and Serge Delbono for having point out it to me. 
  1944.  
  1945.   - Brett Stevenson and Richard Ross-Langley for correction of English version
  1946. of FAQ and web site homepage. 
  1947.  
  1948.   - B.D. to have searched and given registry file format (I can not find the 
  1949. whole name of author). 
  1950.  
  1951.   - bug finders for reporting them and giving help to resolve them: 
  1952.  
  1953.     * Charles M. Tilden (problem on bad detection of hard drive).
  1954.     * Daniel Lagunes (bug on reading partitions table for standard access disk
  1955. with at least two logical partitions).
  1956.     * Thibaud Fontanet (failure of detection for some hard disks into V2.21 
  1957. and hang up of computer when rebooting, the first problem was then reported by
  1958. Juergen and Ray Schmitz)(for V2.22 bad attribution of DOS drive letter in the 
  1959. case there was several main DOS partition on the same disk).
  1960.     * Ray Schmitz (problem about accessing the wrong disk in the case of a 
  1961. drive before it is not detected as a hard disk).
  1962.     * Volker Beck (the forgetting of code to allows saving NTFS partition with
  1963. batch mode).
  1964.     * Frode Ingebretsen (screen problems with some computers (not compatible 
  1965. BIOS ?)).
  1966.     * Brian Bell (the unavaibility to restore FAT partitions that have bad 
  1967. sectors when saving).
  1968.     * Menno Schoone (the not needed ask for option file creation when saving 
  1969. with an option file using the automatic_naming option).
  1970.     * Patrick Barny (the first who has helped me on very fragmented NTFS 
  1971. partition, followed by Peter Newman and Kamil Wicher).
  1972.  
  1973.   - people that send me mails for encouraging, doing remarks, giving advice 
  1974. and giving improvement way.
  1975.  
  1976.  
  1977. Hope this program will be useful, 
  1978.  
  1979. D. Guibouret <damien.guibouret@partition-saving.com> 
  1980.  
  1981. ------
  1982. All trademarks and registered trademarks are ownership of their respective 
  1983. holders. 
  1984.